﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;

namespace Ags.MonsterTools.PingTool
{
    public static class Extensions
    {
        public static string ToPrettyString(this PingReply reply)
        {
            var msg = String.Format("Ping: {0} ms to {1} ({2})", reply.RoundtripTime, reply.Address, reply.Status);
            return msg;
        }
    }
}
